package com.sunjq.personalblog.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(name = "author")
@SequenceGenerator(name = "sequence", sequenceName = "author_sequence")
public class Author implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7482081190866307010L;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "sequence")
	private long id;

	private String name;
}
